package com.win.oauth.dto;

import com.fyl.validation.RuleType;
import com.fyl.validation.anno.Validation;
import com.fyl.validation.anno.Validation.Rule;
import com.fyl.validation.anno.ValidationRule;

import javax.validation.constraints.NotBlank;

public class LoginUserDTO {

//    @ValidationRule(type = RuleType.REQUIRED, value = "true", message = "username 必填")
//    @ValidationRule(type = RuleType.REQUIRED, value = "true", message = "username 必填")
//    @ValidationRule(type = RuleType.REQUIRED, value = "true", message = "username 必填")
    @Validation(rules = {@Rule(type = RuleType.REQUIRED, value = "true", message = "username 必填"),
            @Rule(type = RuleType.REQUIRED, value = "true", message = "username 必填")})
    private String username;

    @NotBlank
    private String password;

    private String formId;

    private String code;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
